Repository navigation
パッケージアイコン・CI での警告エラー化・GitHub Release の自動作成・.editorconfig・.gitignore の整理 - #17
Merged
Merged
Conversation
初期テンプレート(VS2015 時代)のままだったため。Claude Code の個人用設定と、リポジトリに含めない実際の郵便番号データ(utf_ken_all.csv など)を追加。 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HNb8H3hV3ndoRpyuu59g1u
.cs の UTF-8(BOM 付き)とインデントを明記。改行コードは core.autocrlf に任せ、テストデータは対象外にする。 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HNb8H3hV3ndoRpyuu59g1u
アイコンはこのライブラリで描いたカスタマバーコードの先頭4シンボル。CI では TreatWarningsAsErrors で XML ドキュメントコメントの付け忘れなどを止める(依存パッケージの脆弱性の警告 NU1901〜NU1904 は除く)。 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HNb8H3hV3ndoRpyuu59g1u
github-release ジョブで、リリースノートをマージした PR から自動生成する。書き込み権限は Trusted Publishing を扱う publish ジョブと分ける。CLAUDE.md にも今回の整備内容を追記。 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HNb8H3hV3ndoRpyuu59g1u
- 脆弱性データを取得できなかったときの NU1900 も CI でエラーにしない - GitHub Release が作成済みならスキップし、ジョブの再実行で失敗しないようにする - アイコンの生成スクリプト tools/GenerateIcon.cs を追加し、バーを中央に置き直す(左右の余白が 24px と 20px だった) - ローカルで CI と同じ警告の確認をする方法を CLAUDE.md に追記 - .gitignore に node_modules/ を戻し、.editorconfig で actions.lock を対象外にする Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HNb8H3hV3ndoRpyuu59g1u
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
変更内容
パッケージアイコン
icon.png(128×128)を追加し、3 パッケージのPackageIconに設定した。CI では警告をエラーにする
GITHUB_ACTIONSのときだけTreatWarningsAsErrorsを有効にした(ローカルは警告のまま)。XML ドキュメントコメントの付け忘れ(CS1591)などを見逃さない。タグの公開後に GitHub Release を作る
github-releaseジョブを追加した。nuget.org への公開(publish)が成功したら、gh release create --generate-notesでタグの Release を作る。contents: write)は、Trusted Publishing を扱うpublishジョブには付けず、このジョブだけに付けている。-を含むタグ(v2.1.0-beta.1など)はプレリリースにする。.editorconfig.csの UTF-8(BOM 付き)、インデント(基本 4、XML・YAML・JSON などは 2、.slnはタブ)を明記した。core.autocrlfに任せて指定しない。TestDataは対象外にした。.gitignoredotnet new gitignoreで作り直した。.claude/settings.local.jsonと、リポジトリに含めない実際の郵便番号データ(utf_ken_all.csv・KEN_ALL.CSV・JIGYOSYO.CSVと zip)を追加した。KEN_ALL*.CSVのようなパターンにするとテスト用のken_all_sample.csvまで除外されてしまう。ファイル名をそのまま指定している。レビューの指摘への対応
tools/GenerateIcon.csを追加した(dotnet run tools/GenerateIcon.cs -- icon.png)。バーのある範囲を中央に置き直した(左右の余白が 24px と 20px でずれていた。今は上下左右とも 22px)。-p:TreatWarningsAsErrors=true)を CLAUDE.md に書いた。.gitignoreにnode_modules/を戻した。.editorconfigで、自動生成のactions.lockを対象外にした。確認
GITHUB_ACTIONS=trueで、コアの両方のビルド(net8.0・netstandard2.0)のビルドが警告 0 件・エラー 0 件で通ることを確認した。GITHUB_ACTIONS=trueでは CS1591 がエラー、ローカルでは警告になることを確認した(確認後に元に戻している)。dotnet packで、3 パッケージすべてにicon.pngが含まれ、nuspec に<icon>icon.png</icon>が入ることを確認した。git ls-files -ci --exclude-standardで、管理中のファイルが.gitignoreで除外されないことを確認した。gh actions-lock --verify-localは問題なし(新しいアクションは追加していない)。github-releaseジョブは、次のタグを push したときに初めて動く。🤖 Generated with Claude Code
https://claude.ai/code/session_01HNb8H3hV3ndoRpyuu59g1u